package com.yunlankeji.stemcells.activity.mine;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout;

import com.yunlankeji.ganxibaozhijia.R;

public class privacyActivity extends AppCompatActivity {
    private WebView webView;
    LinearLayout linearLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_privacy);
        webView=(WebView)findViewById(R.id.wb_login_privacy);
        webView.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideUrlLoading(WebView view,String url) {
                view.loadUrl(url);
                return true;
            }
        });
        webView.loadUrl("http://www.baidu.com/");
        linearLayout=(LinearLayout)findViewById(R.id.lt_login_privacy_return);
        linearLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent();
                intent.setClass(privacyActivity.this,LoginActivity.class);
                startActivity(intent);
                privacyActivity.this.finish();
            }
        });
    }
}